export const changeTime = (time) => {
    var date1 = new Date(time);
    var year = date1.getFullYear();
    var month = date1.getMonth()+1;
    var date = date1.getDate();
    var hour = date1.getHours();
    var minute = date1.getMinutes();

    if(month < 10){
        month = "0" + month;
    }

    if(minute < 10){
        minute = "0" + minute;
    }
    return year + "-" + month + "-" + date + " " + hour + ":" + minute;
}